package org.doit.android.bobple.etc;

import org.doit.android.bobple.R;
import org.doit.android.bobple.base.BaseActivity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

/**
 * @author Choi HongKi
 *
 */
public class EtcActivity extends BaseActivity {
	@Override
	protected void drawOnCreate(Bundle savedInstanceState) {
		inflateContentViewStub(R.layout.etc);

		/* 로그인 버튼 이벤트 핸들러 선언 및 할당 */
		findViewById(R.id.etc_btn_login).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Context context = v.getContext();
				Intent intent = new Intent(context, LoginActivity.class);
				context.startActivity(intent);
			}
		});

		/* 밥플 버튼 이벤트 핸들러 선언 및 할당 */
		findViewById(R.id.etc_btn_about_bobple).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Context context = v.getContext();
				Intent intent = new Intent(context, BobpleActivity.class);
				context.startActivity(intent);
			}
		});
	}
}